package com.bjpowernode.service;

import com.bjpowernode.user.Order;

import java.util.List;

public interface OrderService {
    int insertOrder(Order order);

    int takeOrder(String username, Integer orderId);

    int modifyOrder(Integer orderId);

    int cancelOrder(Integer orderId);

    List<Order> findProviderOrder(Integer id);

    List<Order> loadNoTakeOrder();

    List<Order> loadUserOrder(String name);

    List<Order> loadUserTakeOrder(String username);
}
